namespace designpatternsplusplus.decorator.DomainEntities
{
    #region

    using System.Collections.Generic;
    using designpatternsplus.contracts;

    #endregion

    /// <summary>
    /// A single aisle of carts in a stack 
    /// both literally and abstractly
    /// 
    /// We setup aisles of carts depending
    /// on our expectations of how busy we will
    /// be. 
    /// </summary>
    public sealed class ShoppingCartAisle : Stack<IShoppingCart>, IMarketAreaLocated
    {
        ///<summary>
        ///</summary>
        /// <summary>
        /// Initializes a new instance of the <see cref="ShoppingCartAisle"/> class.
        /// </summary>
        /// <param name="shoppingBaskets">The shopping baskets.</param>
        public ShoppingCartAisle(IEnumerable<IShoppingCart> shoppingBaskets)
            : base(shoppingBaskets) {}

        #region Implementation of IMarketAreaLocated

        /// <summary>
        /// Gets the section.
        /// </summary>
        /// <value>The section.</value>
        public IMarketLayoutSection Section
        {
            get { return null; }
        }

        ///<summary>
        ///</summary>
        public char RowLetter { get; internal set; }

        #endregion
    }
}